package com.itheima.service.impl;

import com.itheima.dao.SyslogDao;
import com.itheima.domain.Syslog;
import com.itheima.service.SyslogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import java.util.List;

@Service
public class SyslogServiceImpl implements SyslogService {
    @Autowired
    private SyslogDao syslogDao;


    @Override
    public List<Syslog> findAll(int page, int pageSize) {
        PageHelper.startPage(page,pageSize);
        return syslogDao.findAll();
    }

    @Override
    public void save(Syslog syslog) {
        syslogDao.save(syslog);
    }
}
